home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / pcl4w13.zip / PCL4W.H < prev    next >
Text File  |  1996-07-14  |  6KB  |  216 lines

  1. /*** PCL4W.H ***/
  2.  
  3. #ifdef __cplusplus
  4. /* External Library Function Prototypes for C++ */
  5. extern "C" int FAR PASCAL SioBaud(int, int);
  6. extern "C" int FAR PASCAL SioBrkSig(int, char);
  7. extern "C" int FAR PASCAL SioCTS(int);
  8. extern "C" int FAR PASCAL SioDCD(int);
  9. extern "C" int FAR PASCAL SioDSR(int);
  10. extern "C" int FAR PASCAL SioDTR(int, char);
  11. extern "C" int FAR PASCAL SioDone(int);
  12. extern "C" int FAR PASCAL SioFIFO(int, int);
  13. extern "C" int FAR PASCAL SioFlow(int, int);
  14. extern "C" int FAR PASCAL SioGetc(int,int);
  15. extern "C" int FAR PASCAL SioGets(int,char *,int);
  16. extern "C" int FAR PASCAL SioGetDiv(int);
  17. extern "C" int FAR PASCAL SioInfo(char);
  18. extern "C" int FAR PASCAL SioIRQ(int, int);
  19. extern "C" int FAR PASCAL SioLine(int);
  20. extern "C" int FAR PASCAL SioLoopBack(int);
  21. extern "C" int FAR PASCAL SioModem(int, char);
  22. extern "C" int FAR PASCAL SioParms(int, int, int, int);
  23. extern "C" int FAR PASCAL SioPorts(int,int,int,int);
  24. extern "C" int FAR PASCAL SioPutc(int, char);
  25. extern "C" int FAR PASCAL SioRead(int, int);
  26. extern "C" int FAR PASCAL SioReset(int, int);
  27. extern "C" int FAR PASCAL SioRI(int);
  28. extern "C" int FAR PASCAL SioRTS(int, char);
  29. extern "C" int FAR PASCAL SioRxBuf(int, int, int);
  30. extern "C" int FAR PASCAL SioRxClear(int);
  31. extern "C" int FAR PASCAL SioRxQue(int);
  32. extern "C" int FAR PASCAL SioTxBuf(int, int, int);
  33. extern "C" int FAR PASCAL SioTxClear(int);
  34. extern "C" int FAR PASCAL SioTxFlush(int);
  35. extern "C" int FAR PASCAL SioTxQue(int);
  36. extern "C" int FAR PASCAL SioUART(int, int);
  37. extern "C" int FAR PASCAL SioUnGetc(int, char);
  38. extern "C" int FAR PASCAL SioDebug(int);
  39. #else
  40. /* External Library Function Prototypes for C */
  41. extern int FAR PASCAL SioBaud(int, int);
  42. extern int FAR PASCAL SioBrkSig(int, char);
  43. extern int FAR PASCAL SioCTS(int);
  44. extern int FAR PASCAL SioDCD(int);
  45. extern int FAR PASCAL SioDSR(int);
  46. extern int FAR PASCAL SioDTR(int, char);
  47. extern int FAR PASCAL SioDone(int);
  48. extern int FAR PASCAL SioFIFO(int, int);
  49. extern int FAR PASCAL SioFlow(int, int);
  50. extern int FAR PASCAL SioGetc(int,int);
  51. extern int FAR PASCAL SioGetDiv(int);
  52. extern int FAR PASCAL SioInfo(char);
  53. extern int FAR PASCAL SioIRQ(int, int);
  54. extern int FAR PASCAL SioLine(int);
  55. extern int FAR PASCAL SioLoopBack(int);
  56. extern int FAR PASCAL SioModem(int, char);
  57. extern int FAR PASCAL SioParms(int, int, int, int);
  58. extern int FAR PASCAL SioPorts(int,int,int,int);
  59. extern int FAR PASCAL SioPutc(int, char);
  60. extern int FAR PASCAL SioRead(int, int);
  61. extern int FAR PASCAL SioReset(int, int);
  62. extern int FAR PASCAL SioRI(int);
  63. extern int FAR PASCAL SioRTS(int, char);
  64. extern int FAR PASCAL SioRxBuf(int, int, int);
  65. extern int FAR PASCAL SioRxClear(int);
  66. extern int FAR PASCAL SioRxQue(int);
  67. extern int FAR PASCAL SioTxBuf(int, int, int);
  68. extern int FAR PASCAL SioTxClear(int);
  69. extern int FAR PASCAL SioTxFlush(int);
  70. extern int FAR PASCAL SioTxQue(int);
  71. extern int FAR PASCAL SioUART(int, int);
  72. extern int FAR PASCAL SioUnGetc(int, char);
  73. extern int FAR PASCAL SioDebug(int);
  74. #endif
  75.  
  76. /* Port Codes */
  77.  
  78. #define COM1   0
  79. #define COM2   1
  80. #define COM3   2
  81. #define COM4   3
  82. #define COM5   4
  83. #define COM6   5
  84. #define COM7   6
  85. #define COM8   7
  86. #define COM9   8
  87. #define COM10  9
  88. #define COM11  10
  89. #define COM12  11
  90. #define COM13  12
  91. #define COM14  13
  92. #define COM15  14
  93. #define COM16  15
  94.  
  95.  
  96. /* Baud Rate Codes */
  97.  
  98. #define Baud300 0
  99. #define Baud600 1
  100. #define Baud1200 2
  101. #define Baud2400 3
  102. #define Baud4800 4
  103. #define Baud9600 5
  104. #define Baud19200 6
  105. #define Baud38400 7
  106. #define Baud57600 8
  107. #define Baud115200 9
  108.  
  109. #define NORESET -1
  110.  
  111. /* Parity Codes */
  112.  
  113. #define NoParity 0
  114. #define OddParity  1
  115. #define EvenParity 3
  116. #define MarkParity 5
  117. #define SpaceParity 7
  118.  
  119. /* Stop Bit Codes */
  120.  
  121. #define OneStopBit  0
  122. #define TwoStopBits 1
  123.  
  124. /* Word Length Codes */
  125.  
  126. #define WordLength5  0
  127. #define WordLength6  1
  128. #define WordLength7  2
  129. #define WordLength8  3
  130.  
  131. /* Buffer Size Codes */
  132.  
  133. #define Size128  4
  134. #define Size256  5
  135. #define Size512  6
  136. #define Size1024 7
  137. #define Size2048 8
  138. #define Size4096 9
  139. #define Size8192  10
  140. #define Size16384 11
  141. #define Size32768 12
  142. #define Size1K   7
  143. #define Size2K   8
  144. #define Size4K   9
  145. #define Size8K  10
  146. #define Size16K 11
  147. #define Size32K 12
  148.  
  149. /* Line Status Masks */
  150.  
  151. #define TransBufferEmpty 0x20
  152. #define BreakDetect  0x10
  153. #define FramingError 0x08
  154. #define ParityError  0x04
  155. #define OverrunError 0x02
  156. #define DataReady    0x01
  157.  
  158. /* Modem Status Masks */
  159.  
  160. #define DCD 0x80
  161. #define RI  0x40
  162. #define DSR 0x20
  163. #define CTS 0x10
  164. #define DeltaDCD 0x08
  165. #define DeltaRI  0x04
  166. #define DeltaDSR 0x02
  167. #define DeltaCTS 0x01
  168.  
  169. /* Break Signal Commands */
  170.  
  171. #define ASSERT_BREAK 'A'
  172. #define CANCEL_BREAK 'C'
  173. #define DETECT_BREAK 'D'
  174.  
  175. /* SioDTR & SioRTS Commands */
  176.  
  177. #define SET_LINE   'S'
  178. #define CLEAR_LINE 'C'
  179. #define READ_LINE  'R'
  180.  
  181. /* FIFO level codes */
  182. #define FIFO_OFF -1
  183. #define LEVEL_1   0
  184. #define LEVEL_4   1
  185. #define LEVEL_8   2
  186. #define LEVEL_14  3
  187.  
  188. /* IRQ codes */
  189.  
  190. #define IRQ1    1
  191. #define IRQ2    2
  192. #define IRQ3    3
  193. #define IRQ4    4
  194. #define IRQ5    5
  195. #define IRQ6    6
  196. #define IRQ7    7
  197. #define IRQ8    8
  198. #define IRQ9    9
  199. #define IRQ10  10
  200. #define IRQ11  11
  201. #define IRQ12  12
  202. #define IRQ13  13
  203. #define IRQ14  14
  204. #define IRQ15  15
  205.  
  206. /* SioInfo Commands */
  207.  
  208. #define VERSION 'V'
  209. #define M_MODEL 'M'
  210.  
  211. /* SioPort dumbcard types */
  212.  
  213. #define PC_PORTS  0
  214. #define DIGIBOARD 1
  215. #define BOCABOARD 2
  216.